package 反射.cglib动态代理.v1;

public class App {

	public static void main(String[] args) {

		// 要代理的真实对象
		Programmer programmer = new Programmer();
		// 生成MethodInterceptor对象
		CglibProxy proxy = new CglibProxy();
		// 根据真实对象生成代理对象
		Programmer proxyProgrammer = (Programmer) proxy.newProxy(programmer);
		System.out.println(proxyProgrammer.getClass());
//		System.out.println(proxyProgrammer.workAndGetReward() + " - " + System.currentTimeMillis());

	}
}
